﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Layouts/Administration.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<FacialClub.Models.Entities.CreditCardType>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
            <th>
                CreditCardTypeId
            </th>
            <th>
                CreditCardTypeName
            </th>
            <th>
                CreditCardTypeDescription
            </th>
            <th>
                IsActive
            </th>
            <th>
                UserCreated
            </th>
            <th>
                CreatedDate
            </th>
            <th>
                UserModified
            </th>
            <th>
                ModifiedDate
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id=item.CreditCardTypeId }) %> |
                <%: Html.ActionLink("Details", "Details", new { id=item.CreditCardTypeId })%> |
                <%: Html.ActionLink("Delete", "Delete", new { id=item.CreditCardTypeId })%>
            </td>
            <td>
                <%: item.CreditCardTypeId %>
            </td>
            <td>
                <%: item.CreditCardTypeName %>
            </td>
            <td>
                <%: item.CreditCardTypeDescription %>
            </td>
            <td>
                <%: item.IsActive %>
            </td>
            <td>
                <%: item.UserCreated %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.CreatedDate) %>
            </td>
            <td>
                <%: item.UserModified %>
            </td>
            <td>
                <%: String.Format("{0:g}", item.ModifiedDate) %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

